home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / mdcommnt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  1.5 KB  |  68 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <winb.h>
  5. #include <te.h>
  6. #include <fntb.h>
  7. #include <gui.h>
  8. #include "banx.h"
  9. #include "kifuctrl.h"
  10.  
  11. extern int  textcommentId[8] ;
  12. extern int  note_windowId ;
  13.  
  14. int    commentdialogId = -1 ;
  15. int    commentId = -1 ;
  16. int    commentbtnId[2] = -1 ;
  17. int    comment_messageId[3] = -1 ;
  18.  
  19. /*    initDataMICOMMNT:commentbtnId[0]:MJ_DBUTTONL40の呼び出し関数    */
  20. int    igo_commentset(kobj, messId, argc, pev, trigger)
  21. int        kobj ;
  22. int        messId ;
  23. int        argc ;
  24. EVENT    *pev ;
  25. int        trigger ;
  26. {
  27.     char tptr[256];
  28.  
  29.     MMI_SendMessage( commentId, MM_GETTEXT, 3, tptr, 256, FALSE);
  30.     tptr[255] = '\0';
  31.     kifu_commentset( tptr);
  32.     title_fsave_on();
  33.  
  34.     /*    commentdialogIdで示されるオブジェクトを消す        */
  35.     MMI_SendMessage( commentdialogId , MM_ERASE , 0 ) ;
  36.  
  37.     /*    オブジェクトをダイアログから取り外す    */
  38.     MMI_SendMessage( commentdialogId , MM_DETACH , 0 ) ;
  39.  
  40.     MMI_SendMessage( textcommentId[7], MM_SETTEXT, 3, tptr, 256, FALSE);
  41.     
  42.     MMI_SendMessage( note_windowId , MM_SHOW , 0 ) ; 
  43.  
  44.     retunrInitMenuFunc();
  45.  
  46.     return NOERR ;
  47. }
  48.  
  49. /*    initDataMICOMMNT:commentbtnId[1]:MJ_DBUTTONL40の呼び出し関数    */
  50. int    igo_commentcancel(kobj, messId, argc, pev, trigger)
  51. int        kobj ;
  52. int        messId ;
  53. int        argc ;
  54. EVENT    *pev ;
  55. int        trigger ;
  56. {
  57.     /*    commentdialogIdで示されるオブジェクトを消す        */
  58.     MMI_SendMessage( commentdialogId , MM_ERASE , 0 ) ;
  59.  
  60.     /*    オブジェクトをダイアログから取り外す    */
  61.     MMI_SendMessage( commentdialogId , MM_DETACH , 0 ) ;
  62.  
  63.     retunrInitMenuFunc();
  64.  
  65.     return NOERR ;
  66. }
  67.  
  68.